package cn.xej.demo.controller;

import cn.xej.demo.service.AppleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author alicat.xu
 * @Date 2021/11/13 9:31 下午
 */
@RestController
public class MockController {

    @Autowired
    private AppleService appleService;


    @GetMapping("apple")
    public String apple(){
        return appleService.getPrice();
    }
}
